﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member_rank_add.aspx.cs" Inherits="WebSite.admin.member.member_rank_add" %>

 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上海万礼通网络科技后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../../js/function.js"></script>
    <script language="javascript">
        parent.maintitle.innerHTML = "会员管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>添加会员等级。"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
<script type="text/javascript" language="javascript">
    function CheckSelect(del, str) {
        var rt = true;
        var num = 0;
        var boxorder = 0;
        var objCheckBox;
        for (var i = 0; i < form1.length; i++) {
            ///alert(form1.elements[i].type);
            if (form1.elements[i].type == "checkbox") {
                boxorder++;
                objCheckBox = form1.elements[i];
                ///alert(objCheckBox.checked);
                if (objCheckBox.checked) {
                    if (boxorder > 1) {
                        //如果是第一个CheckBox，是用来全选全消的，这个不算，不用自加
                        num++;
                    }
                }
            }
        }
        ///alert(num);
        if (!del) {
            if (num > 1) {
                alert("此操作不允许选择多个事件");
                rt = false;
            }
        }
        if (str == 'del') {
            if (num == 0) {
                alert("你没有选择要删除的信息");
                rt = false
            } else { return confirm('你确定要删除这些信息吗?'); }
            ///alert(rt);
        }
        else {
            if (str == 'update') {
                if (num == 0) {
                    alert("你没有选择要更新的信息");
                    rt = false
                } else { return confirm('你确定要更新这些信息吗?'); }
                ///alert(rt);
            } 
        }
        return rt;
    }

    function SelectAll(sa) {
        ///全选/全消
        var objCheckBox;
        for (var i = 0; i < form1.length; i++) {
            if (form1.elements[i].type == "checkbox") {
                objCheckBox = form1.elements[i];
                objCheckBox.checked = sa;
            }
        }
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <table width="90%" border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td width="36%" align="right">会员等级名称： </td>
      <td width="64%" align="left"><input name="rank" id="rank" runat="server" /> *</td>
    </tr>
    <tr>
      <td align="right">积分下限：</td>
      <td align="left"><input size="10" name="score1" id="score1" runat="server" /></td>
    </tr>
    <tr>
      <td align="right">积分上限：</td>
      <td align="left"><input size="10" name="score2" id="score2" runat="server" /></td>
    </tr>
    <tr>
      <td align="right"></td>
      <td align="left"><asp:CheckBox ID="isshow" runat="server" />
        在商品详情页显示该会员等级的商品价格</td>
    </tr>
    <tr>
      <td align="right"></td>
      <td align="left"><asp:CheckBox ID="ismember" runat="server" />
        特殊会员组 <a title="点击此处查看提示信息" href="javascript:clicksa(co1);"><img height="16" alt="点击此处查看提示信息" src="../images/notice.gif" width="16" border="0" /></a><span id="co1" style="display:none"><br />特殊会员组的会员不会随着积分的变化而变化。</span></td>
    </tr>
    <tr>
      <td align="right">初始折扣率：</td>
      <td align="left"><input size="10" name="score3" id="score3" runat="server" />*</td>
    </tr>
    <tr><td align="right"></td>
      <td align="left"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
    </tr>
  </table></td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
